define([
  './edit',
  '../../model/tasklist',
  'backbone',
  'underscore',
  'jquery'
], function(EditListView, TaskList, Backbone, _, $) {
  var AddListView = EditListView.extend({
    submit: function() {
      var self = this;
      var title = this.$el.find('textarea[name="title"]').val();
      this.model.save({
        status: title
      }, {
        success: function(model) {
          baker211b.collections.lists.add(model, {at:0});
          self.remove();
        }
      });
      return false;
    }
  })

  return AddListView;
})